package com.glacier.cloud.order.entity.dataobject;

import com.glacier.framework.component.dal.dataobject.BaseDo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * date 2023-12-27 10:45
 *
 * @author glacier
 * @version 1.0
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class OrderDo extends BaseDo {
    /**
     * 用户ID
     */
    private Long customerUserId;

    /**
     * 订单编号
     */
    private String orderSn;

    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 运费金额
     */
    private BigDecimal freightAmount;

    /**
     * 支付方式
     */
    private Integer payType;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 订单来源
     */
    private Boolean source;

    /**
     * 订单类型 0：正常订单 1：秒杀订单 2：促销订单
     */
    private Boolean type;

    /**
     * 订单状态
     */
    private Boolean status;
}
